package com.indexingsystem.boss.entity;

import java.io.Serializable;
import java.util.List;

import com.indexingsystem.boss.Vo.MenuResouceListVo;

public class PavilionRelations implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	private String resCategoryId;
	
	private String resCategoryName;
	
	private String thumbnail;
	
	private List<MenuResouceListVo> menuResourceListVoList;

	public List<MenuResouceListVo> getMenuResourceListVoList()
    {
        return menuResourceListVoList;
    }

    public void setMenuResourceListVoList(List<MenuResouceListVo> menuResourceListVoList)
    {
        this.menuResourceListVoList = menuResourceListVoList;
    }

    public String getResCategoryId() {
		return resCategoryId;
	}

	public void setResCategoryId(String resCategoryId) {
		this.resCategoryId = resCategoryId;
	}

	public String getResCategoryName() {
		return resCategoryName;
	}

	public void setResCategoryName(String resCategoryName) {
		this.resCategoryName = resCategoryName;
	}

	public String getThumbnail() {
		return thumbnail;
	}

	public void setThumbnail(String thumbnail) {
		this.thumbnail = thumbnail;
	}

	@Override
    public int hashCode()
    {
        final int prime = 31;
        int result = 1;
        result = prime * result
                 + ((menuResourceListVoList == null) ? 0 : menuResourceListVoList.hashCode());
        result = prime * result + ((resCategoryId == null) ? 0 : resCategoryId.hashCode());
        result = prime * result + ((resCategoryName == null) ? 0 : resCategoryName.hashCode());
        result = prime * result + ((thumbnail == null) ? 0 : thumbnail.hashCode());
        return result;
    }

    @Override
    public boolean equals(Object obj)
    {
        if (this == obj) return true;
        if (obj == null) return false;
        if (getClass() != obj.getClass()) return false;
        PavilionRelations other = (PavilionRelations)obj;
        if (menuResourceListVoList == null)
        {
            if (other.menuResourceListVoList != null) return false;
        }
        else if (!menuResourceListVoList.equals(other.menuResourceListVoList)) return false;
        if (resCategoryId == null)
        {
            if (other.resCategoryId != null) return false;
        }
        else if (!resCategoryId.equals(other.resCategoryId)) return false;
        if (resCategoryName == null)
        {
            if (other.resCategoryName != null) return false;
        }
        else if (!resCategoryName.equals(other.resCategoryName)) return false;
        if (thumbnail == null)
        {
            if (other.thumbnail != null) return false;
        }
        else if (!thumbnail.equals(other.thumbnail)) return false;
        return true;
    }

    @Override
	public String toString() {
		return "ResCategory [resCategoryId=" + resCategoryId + ", resCategoryName=" + resCategoryName + ", thumbnail="
				+ thumbnail + "]";
	}

	public PavilionRelations(String resCategoryId, String resCategoryName, String thumbnail) {
		super();
		this.resCategoryId = resCategoryId;
		this.resCategoryName = resCategoryName;
		this.thumbnail = thumbnail;
	}

	public PavilionRelations() {
		super();
	}
}